package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.OpenCityDao;
import com.qc.entity.OpenCityEntity;
import com.qc.service.OpenCityService;

@Service("openCityService")
public class OpenCityServiceImpl implements OpenCityService{

	@Resource(name="openCityDao")
	private OpenCityDao openCityDao;
	
	@Override
	public int saveOpenCity(OpenCityEntity openCityEntity) {

		return openCityDao.saveOpenCity(openCityEntity);
	}

	@Override
	public int deleteOpenCityId(long id) {

		return openCityDao.deleteOpenCityId(id);
	}

	@Override
	public int getListOpenCityCount() {

		return openCityDao.getListOpenCityCount();
	}

	@Override
	public List<OpenCityEntity> getAllOpenCity(int pageNo, int pageSize) {

		return openCityDao.getAllOpenCity(pageNo, pageSize);
	}

}
